package com.darwin.darwinUI.controls
{
	import com.darwin.darwinUI.assist.IGroupItem;
	import com.darwin.darwinUI.core.UIComponent;
	
	import flash.events.Event;
	
	/**
	 * 选项卡面板基类，ITabPanel的简单实现。
	 * @author Roland
	 */
	public class TabPanelBase extends UIComponent implements ITabPanel
	{
		public function TabPanelBase()
		{
			super();
		}
		
		public function tabSelectionChange(tab:IGroupItem):void
		{
			//如果所有Tab都绑定一块面板时，在这里处理选项卡切换时的动作
		}
		
		protected function onRemoveFromStage(event:Event):void
		{
			// 销毁动作
		}
		
		override protected function onAddToStage(event:Event):void
		{
			//刷新动作
			super.onAddToStage(event);
		}
		
		override protected function initUIComponent():void
		{
			addEventListener(Event.REMOVED_FROM_STAGE,onRemoveFromStage);
			super.initUIComponent();
		}

	}
}